import {createRouter, createWebHistory} from "vue-router";

const router = createRouter({
    history: createWebHistory(import.meta.env.BASE_URL),
    routes: [
        {
            path: "/",
            redirect: "/login",
        },
        {
            path: "/login",
            component: () => import("@/views/login/LoginView.vue"),
        },
        {
            path: "/register",
            component: () => import("@/views/register/RegisterView.vue"),
        },
        {
            path: "/home",
            name: "Home",
            component: () => import("@/views/HomeView.vue"),
        },
        {
            path: "/projectMana",
            name: "ProjectMana",
            component: () => import("@/views/projectMana/ProjectManaView.vue"),
        }
    ]
});

export default router;